const mongoose = require('mongoose');
const Schema = mongoose.Schema;

let ObjectedId = Schema.Types.ObjectId;

const contentModel = new Schema({
     itemId:ObjectedId,
     title:String,
     author:String,
     content:String,
     time:{type:Date,default:Date.now()}
})

mongoose.model('Content',contentModel);